ROCKX_SITE = $(TOPDIR)/../external/rockx
ROCKX_SITE_METHOD = local

ROCKX_INSTALL_STAGING = YES

ifeq ($(BR2_PACKAGE_RK1808),y)
ROCKX_COMPILE_PLATFORM = rk1808
endif

ifeq ($(BR2_PACKAGE_RK3399PRO),y)
ROCKX_COMPILE_PLATFORM = rk3399pro
endif

ROCKX_CONF_OPTS = -DCOMPILE_PLATFORM=$(ROCKX_COMPILE_PLATFORM)-Linux

$(eval $(cmake-package))
